package com.ruileroi.ai.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruileroi.ai.entity.po.SpringAiChatRecord;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @program: ruileroi-ai
 * @description:
 * @author: wangrui
 * @create: 2025-05-25 19:16
 **/
public interface SpringAiChatRecordMapper extends BaseMapper<SpringAiChatRecord> {

    @Select("SELECT id FROM spring_ai_chat_record WHERE type = #{type} ORDER BY create_time DESC")
    List<String> findConversationIds(@Param("type") String type);
}
